package com.atgm.mall.gmmallperimall.service.impl;

import com.atgm.common.utils.PageUtils;
import com.atgm.common.utils.Query;
import com.atgm.mall.gmmallperimall.dao.PointsGoodsDao;
import com.atgm.mall.gmmallperimall.entity.PointsGoodsEntity;
import com.atgm.mall.gmmallperimall.service.PointsGoodsService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Map;

@Slf4j
@Service
public class PointsMallServiceImpl extends ServiceImpl<PointsGoodsDao, PointsGoodsEntity> implements PointsGoodsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PointsGoodsEntity> page = this.page(new Query<PointsGoodsEntity>().getPage(params), new QueryWrapper<PointsGoodsEntity>());
        return new PageUtils(page);
    }
}
